/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Vue;
import Controleur.AccueilListener;
import java.awt.*;
import javax.swing.Box;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 *
 * @author sirine
 */
public class Fenetre extends JFrame {
       
     private Accueil acc;
    private JMenuBar menuBar;
    
      public Fenetre(){
        acc = new Accueil();
        setContentPane(acc);
        
         AccueilListener listener = new AccueilListener(this,acc);
       // acc.addJouerListener(listener);
        createMenuBar(listener);
        
        setTitle("IsiMaker");
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setResizable(true);
        pack();
        setLocationRelativeTo(null);
        setVisible(true);
    }
      
      
         private void createMenuBar(AccueilListener listener) {
		menuBar = new JMenuBar();
		
	
		menuBar.add(Box.createHorizontalStrut(240));
		setJMenuBar(menuBar);
    }
         
          private void changeContentPane(Container container) {
        setContentPane(container);
        validate();
        repaint();
    }
          
         
    
}
